from ronglian_sms_sdk import SmsSDK

accId = '8aaf0708827c8fd50182aac986240881'
accToken = 'c38654d6a78f498b920f2ce40e95dfa0'
appId = '8aaf0708827c8fd50182aac9876e0888'

def send_message(phone,code):
    sdk = SmsSDK(accId, accToken, appId)
    tid = '1'
    mobile = phone
    datas = (code,)
    resp = sdk.sendMessage(tid, mobile, datas)
    return resp